﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace working
{
    [System.Serializable]
    public class WorkItem
    {
        public string id;
        public string fileID;//有些分支在其他分支的基础上开发
        public string name;
        public string source;
        public DateTime time;
        public string tags;
        public string description;
        public string web;
        public string import_tablePath;
        public string export_tablePath;
        public List<LinkItem> linkItems = new List<LinkItem>();
        public BackupInfo backupInfo;

        public WorkItem()
        {
            time = DateTime.Now;
            backupInfo = new BackupInfo();
        }

        public void Repire()
        {
            if(string.IsNullOrEmpty(fileID))
            {
                fileID = id;
            }
        }
    }
}
